<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%
	if(session.getAttribute("Login") == null){
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script language="JavaScript"> 
		<!--  
		alert(‍'입력하신 정보가 올바르지 않습니다....');
		location.href = "login.jsp";
		// End --> 
	</script> 
<%
		response.sendRedirect("login.jsp");
	}
%>		
	<form method="post" action="inputboardresult.jsp">
		<table>
			<tr>
				<td bgcolor = "#e0fff" align = "left">아이디 : </td> 
		       	<td><input type = text name = "userid" value = <%=(String)session.getAttribute("Login") %> size = 10 readonly="readonly"></td>
			</tr>
		    <tr>
				<td bgcolor = "#e0fff" align = "left">제목 : </td> 
			    <td><input type = text name = "title" size = 10></td>
			</tr>
			<tr>
				<td bgcolor = "#e0fff" align = "left">내용 : </td>
				<td><textarea name="content" rows=15 cols=50></textarea></td>
			</tr>
		</table>
		<input type = "submit" name = "" value = "입력">
		<input type = "button" name = "" value = "취소" onclick="location.href='boardlist.jsp'";>
	</form>
</body>
</html>